<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
	
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean"%>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html"%>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic"%>
<%@ taglib uri="http://struts.apache.org/tags-tiles" prefix="tiles"%>

<style type="text/css">
<!--
.STYLE1 {font-size: 12px}
.STYLE3 {color: #707070; font-size: 12px; }
.STYLE5 {color: #0a6e0c; font-size: 12px; }
body {
	margin-top: 0px;
	margin-bottom: 0px;
}
.STYLE7 {font-size: 12}
-->
</style>

<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td height="30"><table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="4%">&nbsp;</td>
        <td width="96%" style="padding-right:60px;"><div align="right"><img src="images/print.jpg" width="20" height="20"/><a href="courseEvaluateQuery.do?method=buildExcelDoc" target="_blank">打印</a></div></td>
      </tr>
    </table></td>
  </tr>
  <tr>
    <td><table width="90%" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#c9c9c9">
      <tr>
        <td height="40" bgcolor="#FFFFFF" nowrap><div align="center"><strong><span class="STYLE1">院   系</span></strong></div></td>
        <td height="40" bgcolor="#FFFFFF"><div align="center"><strong><span class="STYLE1">班   级</span></strong></div></td>
        <td height="40" bgcolor="#FFFFFF"><div align="center"><strong><span class="STYLE1">课程名称</span></strong></div></td>
        <td height="40" bgcolor="#FFFFFF" nowrap><div align="center"><strong><span class="STYLE1">教   师</span></strong></div></td>
        <td height="40" bgcolor="#FFFFFF"><div align="center"><strong><span class="STYLE1">参评人数</span></strong></div></td>
        <td height="40" bgcolor="#FFFFFF"><div align="center"><strong><span class="STYLE1">班级人数</span></strong></div></td>
        <td height="40" bgcolor="#FFFFFF"><div align="center"><strong><span class="STYLE1">参评比率</span></strong></div></td>
        <td height="40" bgcolor="#FFFFFF"><div align="center"><strong><span class="STYLE1">教学目标评分</span></strong></div></td>
        <td height="40" bgcolor="#FFFFFF"><div align="center"><strong><span class="STYLE1">教学内容与资讯评分</span></strong></div></td>
        <td height="40" bgcolor="#FFFFFF"><div align="center"><strong><span class="STYLE1">教学组织与方法评分</span></strong></div></td>
        <td height="40" bgcolor="#FFFFFF"><div align="center"><strong><span class="STYLE1">教学态度评分</span></strong></div></td>
        <td height="40" bgcolor="#FFFFFF"><div align="center"><strong><span class="STYLE1">教学管理评分</span></strong></div></td>
        <td height="40" bgcolor="#FFFFFF"><div align="center"><strong><span class="STYLE1">教学效果评分</span></strong></div></td>
        <td height="40" bgcolor="#FFFFFF" nowrap><div align="center"><strong><span class="STYLE1">总评分</span></strong></div></td>
        <td height="40" bgcolor="#FFFFFF" nowrap><div align="center"><strong><span class="STYLE1">教学建议</span></strong></div></td>
      </tr>
      <c:if test="${!empty evaluationList}">
		  <c:forEach items="${evaluationList}" var="evaluation">
      <tr>
        <td height="22" bgcolor="#FFFFFF" nowrap><div align="center"><span class="STYLE3">${evaluation.clazz.major.dept.deptName }</span></div></td>
        <td height="22" bgcolor="#FFFFFF"><div align="center"><span class="STYLE3">${evaluation.clazz.clazzId }</span></div></td>
        <td height="22" bgcolor="#FFFFFF"><div align="center"><span class="STYLE3">${evaluation.course.courseName }</span></div></td>
        <td height="22" bgcolor="#FFFFFF" nowrap><div align="center"><span class="STYLE3">${evaluation.evaluated.nickname }</span></div></td>
        <td height="22" bgcolor="#FFFFFF"><div align="center"><span class="STYLE3">${evaluation.evalNumber }</span></div></td>
        <td height="22" bgcolor="#FFFFFF"><div align="center"><span class="STYLE3">${evaluation.clazz.stuNumber }</span></div></td>
        <td height="22" bgcolor="#FFFFFF"><div align="center"><span class="STYLE3"><fmt:formatNumber type="number" value="${evaluation.evalNumber / evaluation.clazz.stuNumber * 100}" maxFractionDigits="2"/>%</span></div></td>
        <td height="22" bgcolor="#FFFFFF"><div align="center"><span class="STYLE3">${evaluation.goalScore }</span></div></td>
        <td height="22" bgcolor="#FFFFFF"><div align="center"><span class="STYLE3">${evaluation.contentScore }</span></div></td>
        <td height="22" bgcolor="#FFFFFF"><div align="center"><span class="STYLE3">${evaluation.methodScore }</span></div></td>
        <td height="22" bgcolor="#FFFFFF"><div align="center"><span class="STYLE3">${evaluation.attitudeScore }</span></div></td>
        <td height="22" bgcolor="#FFFFFF"><div align="center"><span class="STYLE3">${evaluation.manageScore }</span></div></td>
        <td height="22" bgcolor="#FFFFFF"><div align="center"><span class="STYLE3">${evaluation.effectScore }</span></div></td>      
        <td height="22" bgcolor="#FFFFFF" nowrap><div align="center"><span class="STYLE3">${evaluation.totalScore }</span></div></td>
        <td height="22" bgcolor="#FFFFFF" nowrap><div align="center"><span class="STYLE3">
        	<a href="courseEvaluateQuery.do?method=showSuggestionDetails&clazzId=${evaluation.clazz.id }&courseId=${evaluation.course.id}&teacherId=${evaluation.evaluated.id }&termId=${evaluation.term.id }&epId=${ep.id }" target="_blank">查看详情</a></span></div>
        </td>
      </tr>
          </c:forEach>
	  </c:if> 
    </table></td>
  </tr>
</table>